




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.copyright.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.copyright.entity.Copyright;
import com.application.copyright.struts.form.CopyrightForm;
import com.application.copyright.dao.CopyrightDAO;
 /**
 * 
 * Description:CopyrightService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class CopyrightService extends BaseService
{
	private CopyrightDAO copyrightDAO;

	public CopyrightDAO getCopyrightDAO() {
		return this.copyrightDAO;
	}

	public void setCopyrightDAO(CopyrightDAO copyrightDAO) {
		this.copyrightDAO = copyrightDAO;
	}
        

        public Copyright getCopyright(Copyright copyright) {
		return (Copyright) this.getBaseDao().queryByPk(copyright, copyright.getId());
	}
	
	public Integer getAllCountCopyright(CopyrightForm copyrightForm){
		return this.copyrightDAO.getAllCountCopyright(copyrightForm);
	}
	
	public List<Copyright> searchCopyright(CopyrightForm copyrightForm, PageBean pageBean) throws Exception {
		List<Copyright> copyrightList = (List) this.copyrightDAO.searchCopyright(copyrightForm, pageBean);
		return copyrightList;
	}
        
        public void deleteCopyrights(CopyrightForm copyrightForm){
	   this.copyrightDAO.deleteCopyrights(copyrightForm);	 
	}
        public List searchCopyright(final CopyrightForm copyrightForm) {
    		List<Copyright> copyrightList = (List) this.copyrightDAO.searchCopyright(copyrightForm);
    		return copyrightList;
    	}
}
